namespace Logic.Map.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class alterpos : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.PositionRecord", "BanciUser_F_Id", "dbo.Sys_User");
            DropIndex("dbo.PositionRecord", new[] { "BanciUser_F_Id" });
            AddColumn("dbo.PositionRecord", "BanciUser", c => c.String());
            DropColumn("dbo.PositionRecord", "BanciUser_F_Id");
        }
        
        public override void Down()
        {
            AddColumn("dbo.PositionRecord", "BanciUser_F_Id", c => c.String(maxLength: 50));
            DropColumn("dbo.PositionRecord", "BanciUser");
            CreateIndex("dbo.PositionRecord", "BanciUser_F_Id");
            AddForeignKey("dbo.PositionRecord", "BanciUser_F_Id", "dbo.Sys_User", "F_Id");
        }
    }
}
